package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "zn_farmhouse",autoResultMap = true)
public class ZnFarmhouse implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 农家乐表
     */
    @TableId(value = "house_id", type = IdType.AUTO)
    private Integer houseId;

    /**
     * 农家乐店家名
     */
    @TableField("house_name")
    private String houseName;

    /**
     * 图片
     */
    @TableField("house_picture")
    private String housePicture;

//    @TableField(value = "house_picture",typeHandler = String2ListTypeHandler.class)
//    private List<String> housePicture;
    /**
     * 价格
     */
    @TableField("house_price")
    private BigDecimal housePrice;

    /**
     * 农家乐信息
     */
    @TableField("description")
    private String description;

    /**
     * 所属地区
     */
    @TableField("house_region")
    private String houseRregion;

    /**
     * 详细地址
     */
    @TableField("district_address")
    private String districtAddress;

    /**
     * 联系电话
     */
    @TableField("house_phone")
    private String housePhone;
    /**
     * 营业状态，1为营业，0为未营业 
     */
    @TableField("business_status")
    private Integer businessStatus;

    /**
     * 营业时间
     */
    @TableField("business_time")
    private String businessTime;
    /**
     * 地理位置编码,108.313440,22.833852
     */
    @TableField("house_latitude")
    private String houseLatitude;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

}
